package com.felight;

import java.awt.List;
import java.util.*;

public class benchmark {






	
    public static void main(String[] args) {

    ArrayList<String> arLst = new ArrayList<String>();
    LinkedList<String> lnLst = new LinkedList<String>();

    long start = System.currentTimeMillis();

    for (int i = 0; i < 10000; i++) {
    	int pos = 9000;
        arLst.add("anita");
    }

    System.out.println("Array list: "+Long.toString(System.currentTimeMillis()-start));

    start = System.currentTimeMillis();

    for (int i = 0; i < 10000; i++) {
    	int pos = 9000;
        lnLst.add("anita");
    }

    System.out.println("Linked list: "+Long.toString(System.currentTimeMillis()-start));
}
    }


